package com.kathir.test;

public class Human {
	private car ford = new car();
	private Monitor samsung = new Monitor();
	private Home kathirsHome = new Home();
	
	public void switchOnMonitor(){
		samsung.setPowerState(true);
	}
	
	public void shutDownMonitor(){
		samsung.setPowerState(false);
	}
	
	public void drive(String drivername) {
		System.out.println("car drived by "+drivername);
	}
	
	
	public void buyHome(int squareFeet, int numberOfRooms){
		kathirsHome = new Home();
		kathirsHome.setArea(1000);
		kathirsHome.setRooms(5);
		System.out.println("Kathir bought a new House");
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Human kathir = new Human();
		kathir.shutDownMonitor();
		kathir.buyHome(1000, 5);
		kathir.ford=null;
		

	}

}
